package com.ktjiaoyu.service;

import com.ktjiaoyu.entity.Supplier;
import com.ktjiaoyu.entity.SysUser;
import com.ktjiaoyu.utils.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierService {
    public Supplier getBySupCode(@Param("supCode") String supCode);
    Boolean delete(Integer id);
    /** 多条件查询用户分页数据 */
    public Page<Supplier> findPage(Supplier entity, Integer pageNo, Integer pageSize) throws Exception;
    /** 保存或修改用户信息 */
    public boolean saveOrUpdate(Supplier entity) throws Exception;
    /** 根据id查找用户详细信息 */
    public Supplier findById(Long id) throws Exception;

    /** 查询所有 */
    public List<Supplier> findAll() throws Exception;
}
